package com.sikaryofficial.backend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sikaryofficial.backend.domain.entity.Address;
import com.sikaryofficial.system.api.model.AddressDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 地址Mapper接口
 *
 * @author qinjinyuan
 * @date 2023-11-14
 */
public interface AddressMapper extends BaseMapper<Address> {

    /**
     * 根据经纬度获取地址
     *
     * @param country
     * @param point
     * @return
     */
    List<AddressDTO> getAddressByPoint(@Param("country") String country, @Param("point") String point);
}
